<script>
    $(document).ready(function(){
        $("#idata").datepicker({dateFormat: "dd/mm/yyyy"});
        $('.cancela').click(function(){
           $('#areaTroca').fadeOut(600);
        });
        
        $("#arquivo").hide();
        $('#checkArq').click(function(){
            if($(this).is(':checked'))
                $("#arquivo").show(600);
            else
                $("#arquivo").hide(600);
        });
    });
</script>
<h1>Edição de Ata</h1><hr>
<?php
    echo form_open('relatorio/editandoAta');
    echo form_hidden('id', $ata->id);
    echo form_hidden('nomeOriginal',$ata->nome);
 ?>   
    <table class="tabulacao">
        <tr>
            <td>
                <?php echo form_checkbox('novoArquivo',1,'','id=checkArq')?>
                <?php echo form_label('Novo arquivo')?>
                <?php echo form_upload('arquivo','','id=arquivo')?>
            </td>
        </tr>
        <tr>
            <td>
                <?php echo form_label('Novo nome:', 'inome');?>
                <?php echo form_input('nome', $ata->nome, 'id=inome').'.pdf';?>
            </td>
        </tr>
        <tr>
            <td>
                <?php echo form_label('Data:', 'idata');?>
                <?php echo form_input('data', $ata->data, 'idata');?>
            </td>
        </tr>
        <tr>
            <td>
                <?php echo form_submit('','Editar');?>
                <?php echo form_button('','Cancelar','class=cancela')?>
            </td>
        </tr>
    </table>
<?php form_close();?>
<br>